//
//  MapCycleModel.m
//  PerfectWorld
//
//  Created by dllo on 16/9/1.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "MapCycleModel.h"
#import "CycleBanners.h"
#import "CycleType.h"
@implementation MapCycleModel

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"banners"]) {
        NSMutableArray<CycleBanners *> *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            CycleBanners * banners = [CycleBanners modelWithDic:dic];
            [array addObject:banners];
        }
        _banners = array;
    }
    if ([key isEqualToString:@"type"]) {
        _type = [CycleType modelWithDic:value];
}
}

@end
